From ba17081caaadc9ad16aefb4c8332d883efc5ba54 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 11 Dec 1998 01:44:12 +0000 Subject: [PATCH] Use gdk_window_get_origin() instead of gdk_window_get_position, because Thu Dec 10 20:42:22 1998 Owen Taylor * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use gdk_window_get_origin() instead of gdk_window_get_position, because get_position is unreliable for plugs. This is a bad hack, maybe we need GDK_WINDOW_PLUG? --- ChangeLog | 8 ++++++++ ChangeLog.pre-2-0 | 8 ++++++++ ChangeLog.pre-2-10 | 8 ++++++++ ChangeLog.pre-2-2 | 8 ++++++++ ChangeLog.pre-2-4 | 8 ++++++++ ChangeLog.pre-2-6 | 8 ++++++++ ChangeLog.pre-2-8 | 8 ++++++++ config.h.in | 3 --- gtk/gtkdnd.c | 2 +- 9 files changed, 57 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d8de67a1b6..8720fbb2d1 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,11 @@ +Thu Dec 10 20:42:22 1998 Owen Taylor + + * gtk/gtkdnd.c (gtk_drag_dest_handle_event): Use + gdk_window_get_origin() instead of gdk_window_get_position, + because get_position is unreliable for plugs. + + This is a bad hack, maybe we need GDK_WINDOW_PLUG? + Thu Dec 10 17:58:49 GMT 1998 Tony Gale * docs/gtk_tut.sgml: diff --git a/config.h.in b/config.h.in index 364037f42a..03bb8ec8ba 100644 --- a/config.h.in +++ b/config.h.in @@ -59,6 +59,3 @@ /* Define if you have the header file. */ #undef HAVE_WCTYPE_H - -/* Define if you have the X11 library (-lX11). */ -#undef HAVE_LIBX11 diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 052c671b75..2794f94e5c 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -864,7 +864,7 @@ gtk_drag_dest_handle_event (GtkWidget *toplevel, if (event->type == GDK_DROP_START) info->dropped = TRUE; - gdk_window_get_position (toplevel->window, &tx, &ty); + gdk_window_get_origin (toplevel->window, &tx, &ty); data.x = event->dnd.x_root - tx; data.y = event->dnd.y_root - ty; -- 2.30.2